home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / santa_mobile.swf / scripts / DefineSprite_228 / frame_3 / DoAction.as
Text File  |  2011-09-24  |  492b  |  25 lines

  1. if(-50 < getProperty(this, _X))
  2. {
  3.    setProperty(this, _X, getProperty(this, _X) - _root.speed);
  4.    play();
  5. }
  6. else
  7. {
  8.    if(_root.bee == 1)
  9.    {
  10.       this.swapDepths(_root.tempo);
  11.       _root.bee = 0;
  12.    }
  13.    setProperty(this, _X, 650);
  14.    time = getTimer() + 1000;
  15.    gotoAndPlay(1);
  16. }
  17. if(this.hitTest(_root.mobile))
  18. {
  19.    if(getProperty(_root.mobile, _Y) < getProperty(this, _Y) && _root.bee == 0)
  20.    {
  21.       _root.bee = 1;
  22.       this.swapDepths(_root.tempo);
  23.    }
  24. }
  25.